package com.itkaien.mapper;

import com.itkaien.pojo.Inventory;
import com.itkaien.pojo.InventoryExample;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface InventoryMapper {
    long countByExample(InventoryExample example);

    int deleteByExample(InventoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Inventory record);

    int insertSelective(Inventory record);

    List<Inventory> selectByExample(InventoryExample example);

    Inventory selectByGoodIdAndStoryIdAndCategory(Integer storeId ,Integer goodsId,String goodsName);
    Inventory    selectBygoodidandstoryid(Integer storeId ,Integer goodsId);


    Inventory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Inventory record, @Param("example") InventoryExample example);

    int updateByExample(@Param("record") Inventory record, @Param("example") InventoryExample example);

    int updateByPrimaryKeySelective(Inventory record);

    int updateByPrimaryKey(Inventory record);

    List<Inventory> selectAllInventoryPage(String name, Date createTime, int start, int pageSize);
}